package com.itheima.stock.service;

import com.itheima.stock.common.domian.PermissionDomain;
import com.itheima.stock.pojo.SysPermission;
import com.itheima.stock.vo.result.R;

import java.util.List;
import java.util.Set;

/**
 * @author: siwukun
 * @date: 2022/06/10
 * @description:
 */
public interface PermissionService {
    /**
     * 查询所有权限列表
     * @return
     */
    R<List<SysPermission>> getAllPermissions();

    /**
     * 添加权限时回显权限树
     * @return
     */
    R<List<PermissionDomain>> getPermissionTree();
}
